//1. 导入模块
import React from "react";
import { createRoot } from "react-dom/client";
import App from "./App";
//导入 pubsub-js
import PubSub from "pubsub-js";
//导入 BrowserRouter
// import { BrowserRouter, HashRouter } from "react-router-dom";
import { AliveScope } from "react-activation";
import store from './redux/store';

//2. 创建根元素
let root = createRoot(document.querySelector("#root"));

//3. 渲染
root.render(
    <App />
);

//redux 的订阅
store.subscribe(() => {
  root.render(<App />);
});